package com.wwwarehouse.taskcenter.fragment.invite_business_information;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * author ：minifly
 * date: 2017/9/29
 * time: 11:47
 * desc:
 */
public class ContractFragmentPagerAdapter extends FragmentStatePagerAdapter {
    private List<Fragment> mTabContents;

    public ContractFragmentPagerAdapter(FragmentManager fm, List<Fragment> mTabContents) {
        super(fm);
        this.mTabContents = mTabContents;
    }

    public int getCount() {
        return this.mTabContents.size();
    }

    public Fragment getItem(int arg0) {
        return (Fragment)this.mTabContents.get(arg0);
    }

    public int getItemPosition(Object object) {
        return -2;
    }
}